import  requests  from "./request"
// const mock = '../../mock'
//扶贫政策列表 假数据
// export const reqGetFuPinList = ()=> requests({url:`/${mock}/fupin.json`})


//获取扶贫政策列表
export const reqGetFuPinList = (data)=> requests({url:`/alleviation/getlist`,params:data,method:'get'})

//获取贫困户列表
export const reqPinKunHuList = (data)=>requests({url:'/poor/getlist',params:data,method:'get'})

//获取用户列表 reqYongHuList
export const reqYongHuList = (data)=>requests({url:'/user/getlist',params:data,method:'get'})

//获取志愿者列表
export const reqZhiYuanZeList = (data)=>requests({url:'/volunteer/getlist',params:data,method:'get'})

//获取收藏表列表
export const reqShoucangList = (data)=>requests({url:'/collection/getlist',params:data,method:'get'})

//获取轮播图列表
export const reqLunBoTuList = (data)=>requests({url:'/carousel/getlist',params:data,method:'get'})

//获取留言板列表
export const reqLiuYanBanList = (data)=>requests({url:'/msgboard/getlist',params:data,method:'get'})

//删除接口
export const reqDelData = (url,id)=>requests({url:`${url}?id=${id}`,method:'get'})
//添加接口
export const reqAddData = (url,data)=>requests({url,data,method:'post'})
//上传图片接口
export const reqUpLoadImg = (data,headerConfig)=>requests({url:"/uploadImg",data,headerConfig,method:'post'})
//修改接口
export const reqChangeData = (url,data)=>requests({url,data,method:'post'})
//查询接口
export const reqSearchData = (url,val)=>requests({url:`${url}?val=${val}`,method:'get'})

//登录接口
export const reqUserLogin = (data)=>requests({url:'/user/login',data,method:'post'})